import styled from 'styled-components'

export const RankingWrapper = styled.div`
  width: 230px;
  height: 472px;
  padding: 20px 0 0 20px;
  box-sizing: border-box;
  .rank-top {
    display: flex;
    height: 101px;
    .rank-top-left {
      width: 80px;
      height: 80px;
      overflow: hidden;
      position: relative;
      img {
        width: 100%;
        height: 100%;
      }
      a {
        background-position:  -145px -57px;
        width: 80px;
        height: 80px;
        display: block;
        z-index: 999;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
      }
    }
    .rank-top-right {
      padding-left: 10px;
      h3 {
        font-size: 14px;
        font-weight: 700;
        padding: 0px 0 10px;
        cursor: pointer;
      }
      .btn {
        a {
          display: inline-block;
          width: 22px;
          height: 22px;
        }
        .btn-left {
          background-position: -267px -205px;
        }
        .btn-right {
          margin-left: 10px;
          background-position:  -300px -207px;
        }
      }
    }
  }
  .rank-content {
    li {
      height: 32px;
      line-height: 32px;
      display: flex;
      justify-content: space-between;
      cursor: pointer;
      .name {
        flex: 1;
      }
      .rank-content-icon {
        display: none;
        width: 85px;
        align-items: center;
        a {
          display: inline-block;
          width: 22px;
          height: 22px;
        }
        .icon1 {
          background-position: -267px -266px;
        }
        .icon2 {
          background-position: 0 -698px;;
        }
        .icon3 {
          background-position: -297px -268px;
        }
      }

      &:hover {
        .name {
          width: 100px;
        }
        .operator {
          display: flex;
          padding-top: 2px;
        }
      }
    }
  }
  .footer {
    display: flex;
    height: 32px;
    align-items: center;
    flex-direction: row-reverse;
    cursor: pointer;
    padding-right: 20px;
    &:hover {
      text-decoration: underline;
    }
  }
`